<!doctype html>
<html lang="en">
<!-- head 区域 - 开始 -->
<?php
$mod='blank';
$title='价格列表';
require_once('head.php');
?>
<!-- head 区域 - 结束 -->

<body data-topbar="dark" data-layout="horizontal">

  <!-- 页面 - 开始 -->
  <div id="layout-wrapper">

    <!-- 头部区域 - 开始 -->
    <?php include('header.php'); ?>
    <!-- 头部区域 - 结束 -->

    <!-- 顶部导航栏 - 开始 -->
    <?php include('topnav.php'); ?>
    <!-- 顶部导航栏 - 结束 -->

    <!-- 主内容区域 - 开始 -->
    <div class="main-content">

      <div class="page-content">
        <div class="container-fluid">

          <div class="row mt-4">
            <div class="col-lg-12">
              <div class="card">
                <div class="card-body">
                  <h4 class="card-title">价格列表</h4>
                  <p class="card-title-desc">这里可以看到所有的价格</p>
<!--<div class="layui-table-tool-self">-->
<!--    <div class="layui-inline" title="筛选列" lay-event="LAYTABLE_COLS">-->
<!--        <i class="layui-icon layui-icon-cols"></i>-->
<!--        </div>-->
<!--        <div class="layui-inline" title="导出" lay-event="LAYTABLE_EXPORT">-->
<!--            <i class="layui-icon layui-icon-export"></i>-->
<!--            </div><div class="layui-inline" title="打印" lay-event="LAYTABLE_PRINT">-->
<!--                <i class="layui-icon layui-icon-print"></i></div>-->
<!--                </div>-->
<!--<div class="layui-table-tool"><div class="layui-table-tool-temp"> <div class="layui-btn-container"> <button class="layui-btn layui-btn-sm" lay-event="getCheckLength">获取选中数目</button> </div> </div><div class="layui-table-tool-self"><div class="layui-inline" title="筛选列" lay-event="LAYTABLE_COLS"><i class="layui-icon layui-icon-cols"></i></div><div class="layui-inline" title="导出" lay-event="LAYTABLE_EXPORT"><i class="layui-icon layui-icon-export"></i></div><div class="layui-inline" title="打印" lay-event="LAYTABLE_PRINT"><i class="layui-icon layui-icon-print"></i></div></div></div>-->
                  <div class="table-responsive">
                    <table class="table table-hover mb-0">
                      <thead>
                        <tr>
                            <!--<i class="layui-icon layui-icon-ok"></i>-->
                          <th> ID</th>
                          
                          <th>平台名称</th>
                          <!--<th>倍数X我的费率</th>-->
                          <th>大股东0.2</th>
                          <th>董事长0.25</th>
                          <th>成功人士0.3</th>
                          <th>奋斗青年0.4</th>
                          <th>有志青年0.5</th>
                          <th>有志少年0.6</th>
                          
                          <th>我的价格</th>
                        </tr>
                      </thead>
                      <tbody>
                         <?php 
                        //   $a=$DB->query("select * from qingka_wangke_class where status=1 ");
                        //   while($rs=$DB->fetch($a)){
                        //       echo "<tr><td>".$rs['cid']."</td>
                        //         <td>".$rs['name']."</td>
                        //         <td>(".$rs['price']."倍) X 我的费率</td>
                        //         <td>".$rs['price']*0.2."</td>
                        //         <td>".$rs['price']*0.25."</td>
                        //         <td>".$rs['price']*0.3."</td>
                        //         <td>".$rs['price']*0.4."</td>
                        //         <td>".$rs['price']*0.5."</td>
                        //         <td>".$rs['price']*0.6."</td>
                                
                        //         <td>".($rs['price']*$userrow['addprice'])."</td>
                        //         </tr>"; 
                        //   }
                        // ?>
                        <?php 
                          $a=$DB->query("select * from qingka_wangke_class where status=1 ");
                          while($rs=$DB->fetch($a)){
                              echo "<tr>
                              <td>".$rs['cid']."</td>
                                <td>".$rs['name']."</td>
                               
                                <td>".$rs['price']*0.2."</td>
                                <td>".$rs['price']*0.25."</td>
                                <td>".$rs['price']*0.3."</td>
                                <td>".$rs['price']*0.4."</td>
                                <td>".$rs['price']*0.5."</td>
                                <td>".$rs['price']*0.6."</td>
                                
                                <td>".($rs['price']*$userrow['addprice'])."</td>
                                </tr>"; 
                          }
                        ?>
                      </tbody>
                    </table>
                  </div>

                </div>
              </div>
            </div>
          </div>
          <!-- end row -->

        </div> <!-- container-fluid -->
      </div>
      <!-- End Page-content -->

      <!-- 底部版权区域 - 开始 -->
      <?php include('copyright.php'); ?>
      <!-- 底部版权区域 - 结束 -->

    </div>
    <!-- end main content-->
  </div>
  <!-- END layout-wrapper -->

  <!-- 底部文件 - 开始 -->
  <?php include('footer.php'); ?>
  <!-- 底部文件 - 结束 -->
<!--<style id="LAY_layadmin_theme">.layui-side-menu,.layadmin-pagetabs .layui-tab-title li:after,.layadmin-pagetabs .layui-tab-title li.layui-this:after,.layui-layer-admin .layui-layer-title,.layadmin-side-shrink .layui-side-menu .layui-nav>.layui-nav-item>.layui-nav-child{background-color:#20222A !important;}.layui-nav-tree .layui-this,.layui-nav-tree .layui-this>a,.layui-nav-tree .layui-nav-child dd.layui-this,.layui-nav-tree .layui-nav-child dd.layui-this a{background-color:#009688 !important;}.layui-layout-admin .layui-logo{background-color:#20222A !important;}</style>-->
</body>
<!--<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=0 height=0 src="//music.163.com/outchain/player?type=2&id=2028570351&auto=1&height=32"></iframe>-->
</html>
<!--<script>-->
<!--            var stop, staticx;-->
<!--			var img = new Image();-->
<!--			img.src = "";-->
 
<!--			function Sakura(x, y, s, r, fn) {-->
<!--				this.x = x;-->
<!--				this.y = y;-->
<!--				this.s = s;-->
<!--				this.r = r;-->
<!--				this.fn = fn;-->
<!--			}-->
 
<!--			Sakura.prototype.draw = function(cxt) {-->
<!--				cxt.save();-->
<!--				var xc = 40 * this.s / 4;-->
<!--				cxt.translate(this.x, this.y);-->
<!--				cxt.rotate(this.r);-->
<!--				cxt.drawImage(img, 0, 0, 40 * this.s, 40 * this.s)-->
<!--				cxt.restore();-->
<!--			}-->
 
<!--			Sakura.prototype.update = function() {-->
<!--				this.x = this.fn.x(this.x, this.y);-->
<!--				this.y = this.fn.y(this.y, this.y);-->
<!--				this.r = this.fn.r(this.r);-->
<!--				if(this.x > window.innerWidth ||-->
<!--					this.x < 0 ||-->
<!--					this.y > window.innerHeight ||-->
<!--					this.y < 0-->
<!--				) {-->
<!--					this.r = getRandom('fnr');-->
<!--					if(Math.random() > 0.4) {-->
<!--						this.x = getRandom('x');-->
<!--						this.y = 0;-->
<!--						this.s = getRandom('s');-->
<!--						this.r = getRandom('r');-->
<!--					} else {-->
<!--						this.x = window.innerWidth;-->
<!--						this.y = getRandom('y');-->
<!--						this.s = getRandom('s');-->
<!--						this.r = getRandom('r');-->
<!--					}-->
<!--				}-->
<!--			}-->
 
<!--			SakuraList = function() {-->
<!--				this.list = [];-->
<!--			}-->
<!--			SakuraList.prototype.push = function(sakura) {-->
<!--				this.list.push(sakura);-->
<!--			}-->
<!--			SakuraList.prototype.update = function() {-->
<!--				for(var i = 0, len = this.list.length; i < len; i++) {-->
<!--					this.list[i].update();-->
<!--				}-->
<!--			}-->
<!--			SakuraList.prototype.draw = function(cxt) {-->
<!--				for(var i = 0, len = this.list.length; i < len; i++) {-->
<!--					this.list[i].draw(cxt);-->
<!--				}-->
<!--			}-->
<!--			SakuraList.prototype.get = function(i) {-->
<!--				return this.list[i];-->
<!--			}-->
<!--			SakuraList.prototype.size = function() {-->
<!--				return this.list.length;-->
<!--			}-->
 
<!--			function getRandom(option) {-->
<!--				var ret, random;-->
<!--				switch(option) {-->
<!--					case 'x':-->
<!--						ret = Math.random() * window.innerWidth;-->
<!--						break;-->
<!--					case 'y':-->
<!--						ret = Math.random() * window.innerHeight;-->
<!--						break;-->
<!--					case 's':-->
<!--						ret = Math.random();-->
<!--						break;-->
<!--					case 'r':-->
<!--						ret = Math.random() * 6;-->
<!--						break;-->
<!--					case 'fnx':-->
<!--						random = -0.5 + Math.random() * 1;-->
<!--						ret = function(x, y) {-->
<!--							return x + 0.5 * random - 1.7;-->
<!--						};-->
<!--						break;-->
<!--					case 'fny':-->
<!--						random = 1.5 + Math.random() * 0.7-->
<!--						ret = function(x, y) {-->
<!--							return y + random;-->
<!--						};-->
<!--						break;-->
<!--					case 'fnr':-->
<!--						random = Math.random() * 0.03;-->
<!--						ret = function(r) {-->
<!--							return r + random;-->
<!--						};-->
<!--						break;-->
<!--				}-->
<!--				return ret;-->
<!--			}-->
 
<!--			function startSakura() {-->
 
<!--				requestAnimationFrame = window.requestAnimationFrame ||-->
<!--					window.mozRequestAnimationFrame ||-->
<!--					window.webkitRequestAnimationFrame ||-->
<!--					window.msRequestAnimationFrame ||-->
<!--					window.oRequestAnimationFrame;-->
<!--				var canvas = document.createElement('canvas'),-->
<!--					cxt;-->
<!--				staticx = true;-->
<!--				canvas.height = window.innerHeight;-->
<!--				canvas.width = window.innerWidth;-->
<!--				canvas.setAttribute('style', 'position: fixed;left: 0;top: 0;pointer-events: none;');-->
<!--				canvas.setAttribute('id', 'canvas_sakura');-->
<!--				document.getElementsByTagName('body')[0].appendChild(canvas);-->
<!--				cxt = canvas.getContext('2d');-->
<!--				var sakuraList = new SakuraList();-->
<!--				for(var i = 0; i < 50; i++) {-->
<!--					var sakura, randomX, randomY, randomS, randomR, randomFnx, randomFny;-->
<!--					randomX = getRandom('x');-->
<!--					randomY = getRandom('y');-->
<!--					randomR = getRandom('r');-->
<!--					randomS = getRandom('s');-->
<!--					randomFnx = getRandom('fnx');-->
<!--					randomFny = getRandom('fny');-->
<!--					randomFnR = getRandom('fnr');-->
<!--					sakura = new Sakura(randomX, randomY, randomS, randomR, {-->
<!--						x: randomFnx,-->
<!--						y: randomFny,-->
<!--						r: randomFnR-->
<!--					});-->
<!--					sakura.draw(cxt);-->
<!--					sakuraList.push(sakura);-->
<!--				}-->
<!--				stop = requestAnimationFrame(function() {-->
<!--					cxt.clearRect(0, 0, canvas.width, canvas.height);-->
<!--					sakuraList.update();-->
<!--					sakuraList.draw(cxt);-->
<!--					stop = requestAnimationFrame(arguments.callee);-->
<!--				})-->
<!--			}-->
 
<!--			window.onresize = function() {-->
<!--				var canvasSnow = document.getElementById('canvas_snow');-->
<!--				canvasSnow.width = window.innerWidth;-->
<!--				canvasSnow.height = window.innerHeight;-->
<!--			}-->
 
<!--			img.onload = function() {-->
<!--				startSakura();-->
<!--			}-->
 
<!--			function stopp() {-->
<!--				if(staticx) {-->
<!--					var child = document.getElementById("canvas_sakura");-->
<!--					child.parentNode.removeChild(child);-->
<!--					window.cancelAnimationFrame(stop);-->
<!--					staticx = false;-->
<!--				} else {-->
<!--					startSakura();-->
<!--				}-->
<!--			}-->
<!--</script>-->
<script>
function clickEffect() {
let balls = [];
let longPressed = false;
let longPress;
let multiplier = 0;
let width, height;
let origin;
let normal;
let ctx;
const colours = ["#F73859", "#14FFEC", "#00E0FF", "#FF99FE", "#FAF15D"];
const canvas = document.createElement("canvas");
document.body.appendChild(canvas);
canvas.setAttribute("style", "width: 100%; height: 100%; top: 0; left: 0; z-index: 99999; position: fixed; pointer-events: none;");
const pointer = document.createElement("span");
pointer.classList.add("pointer");
document.body.appendChild(pointer);

if (canvas.getContext && window.addEventListener) {
  ctx = canvas.getContext("2d");
  updateSize();
  window.addEventListener('resize', updateSize, false);
  loop();
  window.addEventListener("mousedown", function(e) {
    pushBalls(randBetween(10, 20), e.clientX, e.clientY);
    document.body.classList.add("is-pressed");
    longPress = setTimeout(function(){
      document.body.classList.add("is-longpress");
      longPressed = true;
    }, 500);
  }, false);
  window.addEventListener("mouseup", function(e) {
    clearInterval(longPress);
    if (longPressed == true) {
      document.body.classList.remove("is-longpress");
      pushBalls(randBetween(50 + Math.ceil(multiplier), 100 + Math.ceil(multiplier)), e.clientX, e.clientY);
      longPressed = false;
    }
    document.body.classList.remove("is-pressed");
  }, false);
  window.addEventListener("mousemove", function(e) {
    let x = e.clientX;
    let y = e.clientY;
    pointer.style.top = y + "px";
    pointer.style.left = x + "px";
  }, false);
} else {
  console.log("canvas or addEventListener is unsupported!");
}


function updateSize() {
  canvas.width = window.innerWidth * 2;
  canvas.height = window.innerHeight * 2;
  canvas.style.width = window.innerWidth + 'px';
  canvas.style.height = window.innerHeight + 'px';
  ctx.scale(2, 2);
  width = (canvas.width = window.innerWidth);
  height = (canvas.height = window.innerHeight);
  origin = {
    x: width / 2,
    y: height / 2
  };
  normal = {
    x: width / 2,
    y: height / 2
  };
}
class Ball {
  constructor(x = origin.x, y = origin.y) {
    this.x = x;
    this.y = y;
    this.angle = Math.PI * 2 * Math.random();
    if (longPressed == true) {
      this.multiplier = randBetween(14 + multiplier, 15 + multiplier);
    } else {
      this.multiplier = randBetween(6, 12);
    }
    this.vx = (this.multiplier + Math.random() * 0.5) * Math.cos(this.angle);
    this.vy = (this.multiplier + Math.random() * 0.5) * Math.sin(this.angle);
    this.r = randBetween(8, 12) + 3 * Math.random();
    this.color = colours[Math.floor(Math.random() * colours.length)];
  }
  update() {
    this.x += this.vx - normal.x;
    this.y += this.vy - normal.y;
    normal.x = -2 / window.innerWidth * Math.sin(this.angle);
    normal.y = -2 / window.innerHeight * Math.cos(this.angle);
    this.r -= 0.3;
    this.vx *= 0.9;
    this.vy *= 0.9;
  }
}

function pushBalls(count = 1, x = origin.x, y = origin.y) {
  for (let i = 0; i < count; i++) {
    balls.push(new Ball(x, y));
  }
}

function randBetween(min, max) {
  return Math.floor(Math.random() * max) + min;
}

function loop() {
  ctx.fillStyle = "rgba(255, 255, 255, 0)";
  ctx.clearRect(0, 0, canvas.width, canvas.height);
  for (let i = 0; i < balls.length; i++) {
    let b = balls[i];
    if (b.r < 0) continue;
    ctx.fillStyle = b.color;
    ctx.beginPath();
    ctx.arc(b.x, b.y, b.r, 0, Math.PI * 2, false);
    ctx.fill();
    b.update();
  }
  if (longPressed == true) {
    multiplier += 0.2;
  } else if (!longPressed && multiplier >= 0) {
    multiplier -= 0.4;
  }
  removeBall();
  requestAnimationFrame(loop);
}

function removeBall() {
  for (let i = 0; i < balls.length; i++) {
    let b = balls[i];
    if (b.x + b.r < 0 || b.x - b.r > width || b.y + b.r < 0 || b.y - b.r > height || b.r < 0) {
      balls.splice(i, 1);
    }
  }
}
}
clickEffect();//调用特效函数
</script>